/**
 * 
 */
package com.iwords.service.persistence;

import java.util.List;

import javax.ejb.Local;

import com.iwords.service.object.TeacherEntity;

/**
 * @author    	huangbaichuan 
 * @time      	2011-8-14    
 * @description	  
 */
@Local
public interface TeacherPersistence {

	void create(TeacherEntity teacher);

	void edit(TeacherEntity teacher);

	TeacherEntity findUser(TeacherEntity teacher);

	void remove(TeacherEntity teacher);

	TeacherEntity find(Object id);

	public boolean isContain(TeacherEntity user);
        
        public TeacherEntity findTeacherByMarktingID(TeacherEntity entity);

	List<TeacherEntity> findAll();

	List<TeacherEntity> findRange(int[] range);

	int count();

}
